package cn.kcq.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * SaleProduct entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sale_product", catalog = "order")

public class SaleProduct implements java.io.Serializable {

	// Fields

	private Integer prodId;
	private String prodName;
	private Float prodPrice;
	@Transient
	private String prodDetail;

	@Transient
	public String getProdDetail() {
		return prodDetail;
	}

	public void setProdDetail(String prodDetail) {
		this.prodDetail = prodDetail;
	}

	/** default constructor */
	public SaleProduct() {
	}

	/** full constructor */
	public SaleProduct(Integer prodId, String prodName, Float prodPrice) {
		this.prodId = prodId;
		this.prodName = prodName;
		this.prodPrice = prodPrice;
	}

	// Property accessors
	@Id

	@Column(name = "PROD_ID", unique = true, nullable = false)

	public Integer getProdId() {
		return this.prodId;
	}

	public void setProdId(Integer prodId) {
		this.prodId = prodId;
	}

	@Column(name = "PROD_NAME", nullable = false, length = 100)

	public String getProdName() {
		return this.prodName;
	}

	public void setProdName(String prodName) {
		this.prodName = prodName;
	}

	@Column(name = "PROD_PRICE", nullable = false, precision = 12, scale = 0)

	public Float getProdPrice() {
		return this.prodPrice;
	}

	public void setProdPrice(Float prodPrice) {
		this.prodPrice = prodPrice;
	}

}